package com.market.web.model;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.market.domain.ProductPrice;
import com.market.domain.Weekly;
@Component("weeklyModel")
@Scope("session")
public class WeeklyModel extends GenericModel<Weekly> {
	
	ProductPrice currentProductPrice;

	@Override
	public Weekly getNewObject() {
		Weekly weekly = new Weekly();
		weekly.setIsNew(Boolean.TRUE);
		return weekly;
	}

	public ProductPrice getCurrentProductPrice() {
		return currentProductPrice;
	}

	public void setCurrentProductPrice(ProductPrice currentProductPrice) {
		this.currentProductPrice = currentProductPrice;
	}
	
}
